package com.todo.admin.service.api;

import com.todo.admin.service.api.request.QueryStaffDetailByUserNameReq;
import com.todo.admin.service.api.request.QueryUserInfoByIdReq;
import com.todo.admin.service.api.request.RecordLoginInfoReq;
import com.todo.admin.service.api.response.CaptchaResp;
import com.todo.admin.service.api.response.QueryStaffDetailByUserNameResp;
import com.todo.admin.service.api.response.UserDetailResp;
import com.todo.common.common.entity.response.BizResponse;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author azhebuxing
 * @date 2025/2/22 21:57
 * @description
 */
public interface AdminStaffServiceApi {

    /**
     * 根据员工名字获取详情信息
     *
     * @param req
     * @return
     */
    BizResponse<QueryStaffDetailByUserNameResp> queryStaffDetailByUserName(@RequestBody QueryStaffDetailByUserNameReq req);

    /**
     * 根据用户Id查询用户信息详情
     *
     * @param req
     * @return
     */
    public BizResponse<UserDetailResp> queryUserInfoById(@RequestBody QueryUserInfoByIdReq req);

    /**
     * 记录用户登录信息
     *
     * @param req
     * @return
     */
    BizResponse<Boolean> recordLoginInfo(RecordLoginInfoReq req);

    /**
     * 生成验证码
     */
    BizResponse<CaptchaResp> getCaptchaImg();
}
